home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Programming / RJTextEd.exe / {app} / InstallData / Syntax / Perl.ini < prev    next >
Encoding:
INI File  |  2009-08-29  |  882 b   |  39 lines

  1. [MultiHighlight]
  2. Syntax=
  3. File=
  4.  
  5. [UserMenu]
  6. 1=#start_region|#start_region+9
  7. 2=#end_region|#end_region+9
  8.  
  9. [Comment]
  10. 1=*************************************************************
  11. 2=<b>Syntax:</b> Perl 5
  12. 3=<b>Author:</b> Rickard Johansson
  13. 4=<b>Date:</b> 2009-08-29
  14. 5=
  15. 6=<b>Recommended colors:</b>
  16. 7=This syntax definition is included with the main program
  17. 8=installation. So the recommended colors are already set
  18. 9=after the program is installed.
  19. 10=*************************************************************
  20.  
  21. [Sample]
  22. 1=#!/usr/bin/perl -w
  23. 2=
  24. 3=my $scs = shift or die "Usage: $0 <scsfile>\n";
  25. 4=open(SCSFILE, "<$scs") or die 'cant open file';
  26. 5=
  27. 6=my @scheme = <SCSFILE>;
  28. 7=chomp @scheme;
  29. 8=
  30. 9=$scheme[0] = ~s/^#//;
  31. 10=print "<bgcolor>$scheme[0]</bgcolor>";
  32. 11=
  33. 12=my $floater = 2.79438;
  34. 13=
  35. 14=close(SCSFILE);
  36. 15=# close the input file
  37. 16=
  38.  
  39.